CXX = g++
CPPFLAGS = -Wall -g -std=c++11
 
TARGET = $(patsubst %.cpp, %.out, $(wildcard *.cpp))
HEADER = $(wildcard headers/*.h)
 
%.out : %.cpp $(HEADER)
	$(CXX) $(CPPFLAGS) $< -o $@
 
.PHONY : all clean
 
all : $(TARGET)
 
clean : 
	rm -f *.out
